
//
//  LeftAddressCell.m
//  saler-ios
//
//  Created by 王亚陆 on 17/6/19.
//  Copyright © 2017年 sayimba. All rights reserved.
//

#import "LeftAddressCell.h"

@implementation LeftAddressCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self){
        
        
        self.contentView.backgroundColor = WhiteColor;
        
        self.AddressName = [UILabel createUIlabel:@"地址" andFont:FontOfSize13 andColor:PriceColor];
        self.AddressName.textAlignment = NSTextAlignmentCenter;
        
        [self.contentView addSubview:self.AddressName];
        [self.AddressName mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self.contentView.mas_centerY);
            make.centerX.mas_equalTo(self.contentView.mas_centerX);
        }];
        self.LineImage = [[UIImageView alloc]init];
        self.LineImage.backgroundColor = YellowColor;
        [self.contentView addSubview:self.LineImage];
        
        
        [self.LineImage mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView.mas_left).with.offset(5*kWidth);
            make.centerY.equalTo(self.contentView.mas_centerY);
            make.size.mas_equalTo(CGSizeMake(3*kWidth, 57*kHeight));
        }];
    }
    
    return self;
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
